<?xml version="1.0" encoding="iso-8859-1" ?>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:tr="http://myfaces.apache.org/trinidad">
<f:view>
    <tr:document title="Maak een Deelnemer">
        <tr:form id="makeParticipantForm">
            <tr:messages globalOnly="true"/>
            <tr:panelTabbed position="above">
                <tr:showDetailItem text="Deelnemer">
                    <tr:panelFormLayout>
                        <tr:inputText label="Pseudoniem" columns="45"
                                      value="#{makeParticipantDialog.makeParticipantMAO.pseudonym}"/>
                        <tr:selectBooleanCheckbox label="Naam verbergen?"
                                                  value="#{makeParticipantDialog.makeParticipantMAO.hideRealName}"/>
                        <tr:selectBooleanCheckbox label="Betaald?"
                                                  value="#{makeParticipantDialog.makeParticipantMAO.paidEntryFee}"/>
                    </tr:panelFormLayout>
                </tr:showDetailItem>
                <tr:showDetailItem text="Persoon">
                    <tr:panelFormLayout>
                        <tr:selectOneChoice value="#{makeParticipantDialog.makeParticipantMAO.personId}"
                                            valuePassThru="true"
                                            immediate="true" label="Persoon" required="false">
                            <f:selectItem itemValue="0" itemLabel="Maak een nieuwe persoon"/>
                            <f:selectItems value="#{makeParticipantDialog.personSelectItems}"/>
                        </tr:selectOneChoice>
                        <tr:inputText label="Voornaam"
                                      value="#{makeParticipantDialog.makeParticipantMAO.makePersonMAO.nickname}"/>
                        <tr:inputText label="Naam voorvoegsel"
                                      value="#{makeParticipantDialog.makeParticipantMAO.makePersonMAO.namePrefix}"/>
                        <tr:inputText label="Naam"
                                      value="#{makeParticipantDialog.makeParticipantMAO.makePersonMAO.name}"/>
                    </tr:panelFormLayout>
                </tr:showDetailItem>
            </tr:panelTabbed>
            <tr:panelButtonBar>
                <tr:commandButton text="Maken"
                                  actionListener="#{makeParticipantDialog.makeParticipant}"/>
            </tr:panelButtonBar>
        </tr:form>
    </tr:document>
</f:view>
</html>